package com.dmall.modules.admin.entity;

import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.Style;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 管理员角色权限关联
 * @author Chen 2017/12/4
 */
@Entity
@NameStyle(Style.lowercase)
@Table(name = "admin_role_permission")
public class AdminRolePermission extends BaseEntity {
    private Long rid;
    private Long pid;

    public AdminRolePermission(Long rid, Long pid) {
        this.rid = rid;
        this.pid = pid;
    }

    public Long getRid() {
        return rid;
    }

    public void setRid(Long rid) {
        this.rid = rid;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }
}
